package org.example;

// 测试『固定下边界通配符』

public class LowerBoundedWildcardsTests {

    public static void add100(Holder<? extends Number> input, Holder<? super Number> result) {
        Number number = input.getValue();
        result.setValue(number.longValue() + 100);
    }

    public static void main(String[] args) {
        Holder<Number> result = new Holder<>(0);
        add100(new Holder<Integer>(10), result);
        System.out.println(result.getValue());
    }
}
